﻿using System;
using NUnit.Framework;

namespace SimpleStore
{
	[TestFixture]
	public class TaxCalculatorTest
	{
		[Test]
		public void ShouldCalculateTaxAmount_Given5PercentTaxRate()
		{
			const double taxRate = 5.00;
			const double basePrice = 40.00;
			TaxCalculator taxMan = new TaxCalculator(taxRate);
			
			Assert.That(2.00, Is.EqualTo(taxMan.CalculateTaxAmount(basePrice)));
		}
	}
}
